//contentJs/index.js
chrome.runtime.sendMessage({
    info: {msg:"我是 content.js， 我在发送消息",fn:()=>{}}
}, res => {
    console.log('我是 content.js ,我收到消息：', res)
})
// 接收消息
chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
    console.log(request, sender, sendResponse)
    sendResponse('我收到了你的消息！');
});